import { axios as request } from '@/utils/request'

const newsDetailVisitAPI = {
  visit: '/analytics/hTNewsDetailVisitAction/add',
  leave: '/analytics/hTNewsDetailVisitAction/visitEdit',
}

export function visitNewsDetailRequest(parameters) {
  return request({
    url: newsDetailVisitAPI.visit,
    method: 'post',
    data: parameters,
  })
}

export function leaveNewsDetailRequest(parameters) {
  return request({
    url: newsDetailVisitAPI.leave,
    method: 'post',
    data: parameters,
  })
}


